$def with()
<html>
<body>

<script type="text/javascript">

function ajaxFunction()
 {
 var xmlHttp;

 try
    {
    xmlHttp=new XMLHttpRequest();
    }
 catch (e)
    {

   try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
   catch (e)
      {

      try
         {
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e)
         {
         alert("No support AJAX");
         return false;
         }
      }
    }

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
         document.myForm.time.value=xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","/give/chenb/123",true);
    xmlHttp.send("");

 }
</script>

<form name="myForm">
user: <input type="text" name="username" onkeyup="ajaxFunction();" />
time: <input type="text" name="time" />
</form>

</body>
</html>
